/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* General Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f2f2f2;
}

.home {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: #b3df16;
}

.container {
    max-width: 1200px;
    width: 100%;
}

.content {
    margin-top: 20px;
}

.manual-settings-container {
    margin-top: 40px; /* Ajout d'une marge supérieure pour descendre l'affichage */
    border-radius: 15px;
    background-color: #ffffff;
    padding: 20px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

.manual-settings-box {
    text-align: center;
}

.button-group {
    display: flex;
    justify-content: space-between; /* Espacement horizontal */
    flex-wrap: wrap;
    margin-top: 10px;
}

.logo-btn-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px;
}

.logo-btn-container img {
    width: 70px;
    height: 70px;
    margin-bottom: 10px;
}

.manual-btn {
    padding: 10px 20px;
    font-size: 18px;
    border-radius: 10px;
    color: black;
    cursor: pointer;
    border: none;
    outline: none;
    transition: background-color 0.3s ease;
    margin-bottom: 10px;
}

.on-btn {
    background-color: #e60fb0;
}

.off-btn {
    background-color: #f44336;
}

.onoffswitch {
    position: relative;
    width: 60px;
    height: 34px;
}

.onoffswitch-checkbox {
    display: none;
}

.onoffswitch-label {
    display: block;
    width: 60px;
    height: 34px;
    background-color: #ddd;
    border-radius: 34px;
    position: relative;
    cursor: pointer;
}

.onoffswitch-inner {
    display: block;
    width: 200%;
    margin-left: 0;
    transition: margin 0.3s ease-in 0s;
}

.onoffswitch-inner:before, .onoffswitch-inner:after {
    display: block;
    float: left;
    width: 50%;
    height: 34px;
    line-height: 34px;
    font-size: 14px;
    color: white;
    font-family: Arial, sans-serif;
    font-weight: bold;
    box-sizing: border-box;
    padding: 0 10px;
}

.onoffswitch-inner:before {
    content: "ON";
    background-color: #4CAF50;
    color: #fff;
    text-align: center;
}

.onoffswitch-inner:after {
    content: "OFF";
    background-color: #f44336;
    color: #fff;
    text-align: center;
}

.onoffswitch-switch {
    display: block;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: #fff;
    position: absolute;
    top: 4px;
    left: 4px;
    transition: all 0.3s ease-in 0s;
}

.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-inner {
    margin-left: -50%;
}

.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-switch {
    left: 30px;
}

iframe {
    border: none;
    width: 1000px;
    height: 600px;
    margin: 10px auto 0;
    display: block;
}

.valider-btn {
    padding: 10px 20px;
    font-size: 18px;
    border-radius: 10px;
    color: white;
    background-color: green; 
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.5s ease;
    margin-bottom: 10px;
}

.valider-btn.valide {
    background-color: green; 
}
  
.valider-btn.animate {
    transform: scale(1.2);
    background-color: #00ff00;
}

#valider-btn:hover {
    background-color: #007BFF; 
    color: white; 
}

#specification-btn {
    padding: 10px 20px;
    font-size: 18px;
    border-radius: 10px;
    color: white;
    background-color: green; 
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.5s ease;
    margin-bottom: 10px;
}

/* Popup Styles */
.popup-hidden {
    display: none;
}
  
.popup-visible {
    display: block;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}
  
.popup-content {
    width: 80%;
    max-width: 600px;
    margin: 50px auto; /* Réduit la marge supérieure pour remonter la popup */
    background: white;
    padding: 20px;
    text-align: center;
    position: relative;
}

.button-group {
    text-align: center;
}
  
.button-group button {
    display: inline-block;
}

.manual-btn.hidden {
    display: none;
}

.manual-settings-box {
    display: flex;
    flex-wrap: wrap; /* Ajouté pour permettre le retour à la ligne */
}

.manual-settings-box .button-group {
    flex-basis: 100%; /* Chaque bouton occupe toute la largeur */
    text-align: center; /* Centre les boutons horizontalement */
}

.manual-settings-box .button-group button {
    margin: 10px; /* Espace entre les boutons */
}

.manual-settings-box .popup-hidden {
    display: none; /* Le popup est initialement caché */
}

.manual-settings-box .popup-content {
    position: fixed;
    top: 35%;
    left: 50%;
    transform: translate(-500%, -20%); /* Ajusté pour remonter la popup */
    background-color: white;
    padding: 20px;
    border: 1px solid #ccc;
}
.dark {
    background-color: #222;
    color: #fff;
}

.dark .apply-btn {
    background-color: #0f9d58;
}

.dark .waterImg {
    opacity: 0.9;
}